<template>
  <div class="app">
    <h1>我是App组件</h1>
    <h2>我的keyword：{{keyword}}</h2>
    <br>
    <Child :ci="keyword" :updateCi="updateKeyword"/>
  </div>
</template>

<script>
  import Child from './components/Child'

  export default {
    name:'App',
    components:{Child},
    data() {
      return {
        keyword:'华为'
      }
    },
    methods: {
      updateKeyword(value){
        this.keyword = value
      }
    },
  }
</script>

<style>
  .app {
    background-color: skyblue;
    padding: 20px;
    border-radius: 10px;
    box-shadow:  0 0 10px black;
  }
</style>